parser.add_argument('--gtk3manifest', dest='gtk3manifest', action='store_const',
const=1,
- help='Generate libgtk3.manifest (Not used now)')
+ help='Generate libgtk3.manifest')
args = parser.parse_args()
no_args = True
no_args = False
if args.gtk3manifest is not None:
- print('Not Used... Will add once gtk/libgtk3.manifest.in is added')
- #manifest = {}
- #manifest['EXE_MANIFEST_ARCHITECTURE'] = '*'
- #process_in(os.path.join(srcroot, 'gtk', 'libgtk3.manifest.in',
- # os.path.join(srcroot, 'gtk', 'libgtk3.manifest',
- # manifest)
+ manifest = {}
+ manifest['EXE_MANIFEST_ARCHITECTURE'] = '*'
+ process_in(os.path.join(srcroot, 'gtk', 'libgtk3.manifest.in'),
+ os.path.join(srcroot, 'gtk', 'libgtk3.manifest'),
+ manifest)
no_args = False
if no_args is True:
cd $(SolutionDir)
</GenerateGtkDbusBuiltSources>
- <GenerateGtkWin32RC>$(PythonPath)\python ..\process-in-win32.py --gtkwin32rc</GenerateGtkWin32RC>
+ <GenerateGtkWin32RC>$(PythonPath)\python ..\process-in-win32.py --gtkwin32rc --gtk3manifest</GenerateGtkWin32RC>
</PropertyGroup>
<PropertyGroup>
<_PropertySheetDisplayName>gtkgensrcsprops</_PropertySheetDisplayName>
<ClCompile Include="..\..\..\modules\input\imviqr.c"><Filter>Source Files</Filter></ClCompile>
<ClCompile Include="..\..\..\modules\input\thai-charprop.c"><Filter>Source Files</Filter></ClCompile>
</ItemGroup>
-</Project>
\ No newline at end of file
+ <ItemGroup>
+ <Manifest Include="..\..\..\gtk\libgtk3.manifest"><Filter>Resource Files</Filter></Manifest>
+ </ItemGroup>
+</Project>
<ReferenceOutputAssembly>false</ReferenceOutputAssembly>
</ProjectReference>
</ItemGroup>
+ <ItemGroup>
+ <Manifest Include="..\..\..\gtk\libgtk3.manifest" />
+ </ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
</ImportGroup>
/>
<UserMacro
Name="GenerateGtkWin32RC"
- Value="$(PythonPath)\python ..\process-in-win32.py --gtkwin32rc"
+ Value="$(PythonPath)\python ..\process-in-win32.py --gtkwin32rc --gtk3manifest"
/>
</VisualStudioPropertySheet>
<Tool Name="VCCustomBuildTool"
Description="Generating GTK+ Win32 Version Resource..."
CommandLine="$(GenerateGtkWin32RC)"
- Outputs="..\..\..\gtk\gtk-win32.rc"
+ Outputs="..\..\..\gtk\gtk-win32.rc;..\..\..\gtk\libgtk3.manifest"
/>
</FileConfiguration>
<FileConfiguration Name="Release|Win32">
<Tool Name="VCCustomBuildTool"
Description="Generating GTK+ Win32 Version Resource..."
CommandLine="$(GenerateGtkWin32RC)"
- Outputs="..\..\..\gtk\gtk-win32.rc"
+ Outputs="..\..\..\gtk\gtk-win32.rc;..\..\..\gtk\libgtk3.manifest"
/>
</FileConfiguration>
<FileConfiguration Name="Debug|x64">
<Tool Name="VCCustomBuildTool"
Description="Generating GTK+ Win32 Version Resource..."
CommandLine="$(GenerateGtkWin32RC)"
- Outputs="..\..\..\gtk\gtk-win32.rc"
+ Outputs="..\..\..\gtk\gtk-win32.rc;..\..\..\gtk\libgtk3.manifest"
/>
</FileConfiguration>
<FileConfiguration Name="Release|x64">
<Tool Name="VCCustomBuildTool"
Description="Generating GTK+ Win32 Version Resource..."
CommandLine="$(GenerateGtkWin32RC)"
- Outputs="..\..\..\gtk\gtk-win32.rc"
+ Outputs="..\..\..\gtk\gtk-win32.rc;..\..\..\gtk\libgtk3.manifest"
/>
</FileConfiguration>
</File>
<File RelativePath="..\..\..\gtk\gtk-win32.rc" />
+ <File RelativePath="..\..\..\gtk\libgtk3.manifest"/>
</Filter>
<Filter
Name="Source Files"